package 网络编程;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

public class TcpClient {

	public static void main(String[] args) throws UnknownHostException, IOException {
		Socket socket = new Socket("192.168.1.104",10003);
		//准备写出数据
		OutputStream out = socket.getOutputStream();
		out.write("ge men lai le".getBytes());
		socket.close();
	}
}
